<%@page import="org.apache.commons.lang.StringUtils"%>
<%@page import="org.apache.commons.lang.time.DateFormatUtils"%>
<%@page import="org.springframework.util.CollectionUtils"%>
<%@page import="java.util.Collection"%>
<%@ include file="../common/common_include.jsp"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>


<%
	
	FaqForm form = (FaqForm)request.getAttribute("command");
	String tab = form.getTab();
	String defaultFaqClass = request.getAttribute("defaultFaqClass")+"";
%>
<div id="mainTop">
		<div class="main">
			<div class="tab" id="faqTab">
				<ul>
			    	<li group="0" value="常见问题" <%=Constants.FAQ_CLASS_QA.equalsIgnoreCase(defaultFaqClass)?"class=focus":""%>>
			    		<a href="javascript:XF.Faq.searchByFaqClass('常见问题')">常见问题</a>
			    	</li>
			        <li group="1" value="服务指南" <%=Constants.FAQ_CLASS_SERVICE.equalsIgnoreCase(defaultFaqClass)?"class=focus":""%>>
			        	<a href="javascript:XF.Faq.searchByFaqClass('服务指南')">服务指南</a>
			        </li>
			    </ul>
			</div>
			<div class="oaTable">
				<div id="replaceDiv"></div>
	    	</div>
    	</div>
</div>

<script type="text/javascript">
	$(function(){
		XF.Faq.searchByFaqClass("<%=defaultFaqClass%>");
		XF.NAV.activeTab('"<%=tab%>"');
	});
</script>
